﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using BungaloEngine.Core;

namespace BungaloEngine.Managers
{
    public class TextureManager
    {
        private Dictionary<object, string> _texturedObjects = new Dictionary<object, string>();

        public void RegisterTexturedObject(object texturedObject, string texture)
        {
            _texturedObjects.Add(texturedObject, texture);
        }
        public Texture2D GetTexture(object texturedObject)
        {
            return Engine.pAssetManager.Get<Texture2D>(_texturedObjects[texturedObject]);
        }
    }
}
